package com.tastesport.chat.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tastesport.chat.model.Group;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface GroupMapper extends BaseMapper<Group> {

    @Select("select count(role) from tastesport_user_group where group_id=#{groupId} and role=2")
    Integer countManager(Integer groupId);

}
